.org 0xE6074 ; Tower Firepower

Tower_Firepower:

	PUSH 	{R4, LR}
	
	MOV		R4, 0								; Tower bonus = 0
	
;-------------------------------------------------------------------------------

	PUSH 	{R0-R1}								; Player # and Partner #
	
	BL		Skill_Setup_Type_CO_Abilities
	
	MOV 	R1, Rank_Tower_Power				; Rank: Tower Power
	
	BL 		Check_Skills_Equipped				; Check the Skill is equipped		
	CMP 	R0, 0								; Does CO use that skill?
	ADDNE 	R4, R4, Stats_Tower_Power			; If CO use skill, add firepower

;-------------------------------------------------------------------------------	
	
	POP 	{R0-R1}								; Player # and Partner #

	MOV 	R0, R4								; Total Tower bonus
	
	POP 	{R4, LR}	
	BX 		LR

;-------------------------------------------------------------------------------		

	NOP
	NOP
	NOP
	NOP
	NOP
	NOP
	NOP
	NOP
	NOP
	NOP
	NOP



